package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Letter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LetterMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Letter record);

    Letter selectByPrimaryKey(Long id);

    List<Letter> selectAll();

    int updateByPrimaryKey(Letter record);

    int selectLetterByState(Long userId);

    List<Letter> selectLetters(Long userId);

    void updateLetterState(int state);

    List<Letter> selectDoubleLetters(@Param("userId") Long userId, @Param("targetId") Long targetId);
}